package chapter1031;

public class TestShirt {
    public static void main(String[] args) {
        //无法创建frock对象
        //Frock5 a = new Frock5();
        
        Shirt shirt = new Shirt();
        shirt.setSize(100);
        System.out.println(shirt.calcArea());

        Frock5 frock = new Shirt();
        frock.setSize(200);
        System.out.println(frock.calcArea());
    }
}
